Skip to content

Conversation

petzel
Copy link
Contributor

@petzel petzel commented Mar 13, 2025

Description

Callers of the splice method in BoundedEventQueue expect to splice a count of events from the beginning of the array. However, the splice call on the underlying data structure does not include a start index parameter, so it interprets the count variable as the start index.

This new behavior is now in line with ArrayBackedNamedEventQueue which also implements NamedEventQueue

Copy link
Member

@leoromanovsky leoromanovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tests

@petzel petzel merged commit 1d5a1e6 into main Mar 13, 2025
8 checks passed
@petzel petzel deleted the eric/fix-splice-bounded-event-queue branch March 13, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants